import { get, post_json, put_json } from '@/utils/request'
const baseUrl = '/campus/partTimeJob/'

export function partTimeJobPage(params) {
  return get(baseUrl + 'pageQuery', params)
}
export function partTimeJobDetail(id) {
  return get(`${baseUrl}queryById/${id}`)
}
export function partTimeJobAdd(params) {
  return post_json(baseUrl + 'publish', params)
}
export function partTimeJobUpdate(params) {
  return put_json(baseUrl + 'update', params)
}
export function partTimeJobCancel(id) {
  return put_json(`${baseUrl}cancel/${id}`)
}
export function partTimeJobApplyList(id) {
  return get(`${baseUrl}queryApplyList/${id}`)
}
export function partTimeJobAudit(id, status) {
  return put_json(`${baseUrl}audit/${id}/${status}`)
}